package com.tiancheng.trade.settlement.controller.api;

import com.tiancheng.trade.settlement.service.settlement.IClearBankCmbService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 清分对账
 */
@RestController
@RequestMapping("/api/clear")
@Validated
@Slf4j
public class ClearController {

    @Resource
    IClearBankCmbService clearBankCmb;

    /**
     * 测试,临时用
     *
     * @param date
     * @throws Exception
     */
    @GetMapping("/handle")
    public void handle(String date) {
        clearBankCmb.handleSummaryData(date);
        clearBankCmb.handleDetailData(date);
    }


}
